package com.starmark;

import com.starmark.actable.service.SysMysqlCreateTableService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@MapperScan("com.starmark.**.mapper")
public class StarmarkApplication implements CommandLineRunner {

	@Autowired
    SysMysqlCreateTableService sysMysqlCreateTableService;

	public static void main(String[] args) {
		SpringApplication.run(StarmarkApplication.class, args);

	}

	@Override
	public void run(String... args) throws Exception {
		sysMysqlCreateTableService.createMysqlTable();
	}
}
